package com.tongzhan.entity.qiaotai;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 基层示范点
 * @author htmic
 * @date 2020/7/29
 */
@TableDoc(table = "t_basic_demo",desc = "基层示范点")
@Data
@Document(collection = "t_basic_demo")
public class BasicDemo extends BaseModel {

    @PrimaryKey
    @ColumnDoc("主键id")
    private String id;

    @ColumnDoc("名称")
    private String name;//名称

    @ColumnDoc("成立时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date time;//成立时间

    @ColumnDoc("地点")
    private String address;//地点

    @ColumnDoc("简介")
    private String introduction;//简介

    @ColumnDoc("图片地址")
    private String picture;//图片地址(如果是多个，以,隔开)

    @ColumnDoc("")
    private String latitude;//经度

    @ColumnDoc("纬度")
    private String longitude;//纬度

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间

    @ColumnDoc("是否删除")
    private Integer is_del;//是否删除

    @ColumnDoc("类型")
    private Integer type; // 0.侨资企业 1.侨胞

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区

}
